<template>
  <div>
    <h1>Child1 </h1>
    <button @click='$root.$emit("getNum",2)'>累加</button>
  </div>
</template>

<script>
export default {
  name: "Child1",
  
  
};
</script>

<style>
</style>